<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
    <p>常规</p>
        {{ userform }}

    <hr>

    <p>p标签</p>
        {{ userform.as_p }}

    <hr>

    <p>ul类型</p>
        {{ userform.as_ul }}

    <hr>

    <p>table类型</p>
        {{ userform.as_table }}

    <hr>

    <p>循环类型</p>
        {% for field in userform %}
            <div>
                <span>{{ field.label }}</span>
                {{ field }}
            </div>
        {% endfor %}

    <hr>
-->

<form method="post" enctype="multipart/form-data">
        {% csrf_token %}
        {{ foodform.as_p }}
    <p>
        <input type="submit" value="提交">
    </p>
</form>
</body>
</html>